package cn.exrick.xboot.modules.news.service;

import cn.exrick.xboot.common.vo.PageVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.exrick.xboot.modules.news.entity.news;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 测试接口
 * @author Exrick
 */
public interface InewsService extends IService<news> {


    /**
     * 20190801
     * njp
     * 查询置顶新闻
     *
     */
    public List<news> selectNewsByTop( @Param("news_is_top")String news_is_top);


    /**
     * 20190830
     * njp
     * 新闻条件
     *
     */
    public List<news> selectNewsVoMap( @Param("news")news info);

    /**
     * 20190830
     * njp
     * 新闻条件
     *
     */
    public List<news> selectPortalNewsVoMap( @Param("news")news info);

    /**
     * 20191114
     * njp
     * 左连接新闻条件
     *
     */
    public List<news> selectPortalNewsvoDict( @Param("news")news info);
    /**
     * 20191114
     * njp
     * 左连接新闻条件分页
     *
     */
    public IPage<news> selectNewsvoDictPage(Page page , @Param("news")news info,Boolean openDataFilter);

    /**
     * 20191230
     * njp
     * 左连接新闻条件分页(APP)
     *
     */
    public IPage<news> selectAPPNewsvoDictPage(Page page , @Param("news")news info);

    /**
     * 20191230
     * njp
     * 左连接新闻条件分页(APP)
     *
     */
    public IPage<news> selectPortalNewsvoDictPage(Page page , @Param("news")news info);


    /**
     * 20200428
     * njp
     * 通过infoId查询本地新闻
     *
     */
    public List<news> selectNewsByInfoId( String infoId);

}